package cn.lin.service.impl;

import cn.lin.domain.User;
import cn.lin.mapper.EditPasswordMapper;
import cn.lin.service.EditPasswordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EditPasswordServiceImpl implements EditPasswordService {

    @Autowired
    private EditPasswordMapper editPasswordMapper;

    @Override
    public User findById(Integer id) {
        return editPasswordMapper.findById(id);
    }

    @Override
    public int updatePassword(String newpassword,Integer id) {
        return editPasswordMapper.updatePassword(newpassword,id);
    }
}
